﻿using AirlinePilotAcademy_WPF.UI_Administrator.Classroom;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Shapes;

namespace AirlinePilotAcademy_WPF
{
    /// <summary>
    /// Interaction logic for MainWidow_AdminMenu.xaml
    /// </summary>
    public partial class MainWidow_AdminMenu : Window
    {
        public MainWidow_AdminMenu()
        {
            InitializeComponent();
        }

        private void Click_NewSubject(object sender, RoutedEventArgs e)
        {
            UI_Administrator.Subject.SubjectSolution newSubject = new UI_Administrator.Subject.SubjectSolution();
            newSubject.ShowDialog();
        }

        private void Click_AsignSubjectToTeacher(object sender, RoutedEventArgs e)
        {
            UI_Administrator.Subject.SubjectToTeacherSolution asignSubjectToTeacher = new UI_Administrator.Subject.SubjectToTeacherSolution();
            asignSubjectToTeacher.ShowDialog();
        }

        private void Click_NewStudent(object sender, RoutedEventArgs e)
        {
            UI_Administrator.Students.NewStudent ns = new UI_Administrator.Students.NewStudent();
            ns.ShowDialog();
        }

        private void Click_SearchSubject(object sender, RoutedEventArgs e)
        {
            UI_Administrator.Subject.SearchSubject searchSubject = new UI_Administrator.Subject.SearchSubject();
            searchSubject.ShowDialog();
        }

        private void Click_NewClassroom(object sender, RoutedEventArgs e)
        {
            ClassroomObject newClassroom = new ClassroomObject();
            newClassroom.ShowDialog();
        }

        private void Click_SearchClassroom(object sender, RoutedEventArgs e)
        {
            UI_Administrator.Classroom.SearchClassroom searchClassroom = new UI_Administrator.Classroom.SearchClassroom();
            searchClassroom.ShowDialog();
        }

        private void Click_SearchStudents(object sender, RoutedEventArgs e)
        {
            UI_Administrator.Students.SearchStudents ss = new UI_Administrator.Students.SearchStudents();
            ss.ShowDialog();
        }
        private void Click_SearchInscription(object sender, RoutedEventArgs e)
        {
            UI_Administrator.Students.SearchInscription si = new UI_Administrator.Students.SearchInscription();
            si.ShowDialog();
        }
        private void Click_SearchStudentByID(object sender, RoutedEventArgs e)
        {
            UI_Administrator.Students.NewInscription ns = new UI_Administrator.Students.NewInscription();
            ns.ShowDialog();

        }

        private void Click_SearchSubjectToTeacher(object sender, RoutedEventArgs e)
        {
            UI_Administrator.Subject.SearchSubjectToTeacher sstt = new UI_Administrator.Subject.SearchSubjectToTeacher();
            sstt.ShowDialog();
        }

        private void Click_SearchSubjectMonth(object sender, RoutedEventArgs e)
        {
            UI_All.Subject.WatchUpdatedSubject wus = new UI_All.Subject.WatchUpdatedSubject();
            wus.ShowDialog();
        }
    }
}
